Skip to content

fix(thread-pool): fix thread count vs binding constructor bug#585

Open
luoxiaojian wants to merge 1 commit into
alibaba:mainfrom
luoxiaojian:lxj/fix-tp
Open

fix(thread-pool): fix thread count vs binding constructor bug#585
luoxiaojian wants to merge 1 commit into
alibaba:mainfrom
luoxiaojian:lxj/fix-tp

Conversation

@luoxiaojian

Copy link
Copy Markdown
Collaborator

No description provided.

static std::once_flag flag;
std::call_once(flag, [this]() mutable {
this->query_thread_pool_.reset(
new ailego::ThreadPool(GlobalConfig::Instance().query_thread_count()));

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里绑核和不绑核对 benchmark 结果会有影响吗?按照之前的写法,那应该是都进行了绑核。现在更改后相当于默认会不绑核

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修复成默认绑核了

Comment thread THREAD_POOL_BEHAVIOR.md
@@ -0,0 +1,313 @@
# ThreadPool Constructor and Configuration Behavior

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个文件是不是没必要放到主仓库里

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是的,这个只是说明一下影响情况,合入前会删掉

@CLAassistant

CLAassistant commented Jul 17, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants